Skip to content

Conversation

@QMDAKA
Copy link

@QMDAKA QMDAKA commented Aug 4, 2017

No description provided.

<groupId>org.webjars</groupId>
<artifactId>bootstrap</artifactId>
<version>3.3.7</version>
</dependency>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trùng lib rồi em ơi
Line 54 có khai báo rồi kìa

new FileOutputStream(serverFile));
stream.write(bytes);
stream.close();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Viết cái đoạn up file này vào 1 file util nha em

new FileOutputStream(serverFile));
stream.write(bytes);
stream.close();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tương tự comment trên, em cũng hãy đưa đoạn code này vào file util nha

}

final String redirectUrl = "redirect:http://localhost/test.php";
return redirectUrl;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

final String redirectUrl = "redirect:http://localhost/test.php";
Có gì nhầm lẫn chỗ này ko em?

Files.write(path, bytes);
itPost.setImage(file.getOriginalFilename());
redirect.addFlashAttribute("message",
"You successfully uploaded '" + file.getOriginalFilename() + "'");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"You successfully uploaded '"
multi language?

<link href="../../static/css/style.css" th:href="@{/css/style.css}" rel="stylesheet"/>
</head>
<body>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check lại toàn bộ indent của jsp em ơi ;(

$("input.upload-new-pic").change(function () {
readURL(this);
});
//]]>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Không viết javascript trong này nha, tạo file riêng đi em

'//fonts.googleapis.com/css?family=Lato:300,300i,400,400i',
'//www.tinymce.com/css/codepen.min.css'
]
});</script>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Không viết js trong này


@Service
public class UserServiceImpl implements UserService {
@Autowired

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lỗi indent


@Bean
public JpaVendorAdapter jpaVendorAdapter() {
HibernateJpaVendorAdapter jpaVendorAdapter = new HibernateJpaVendorAdapter();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Không dùng HibernateJpaVendorAdapter em ơi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants